#include<stdio.h>

int main()
{
    float distance=0,price;
    int distanceCeil=0,distanceFloor=0;
    scanf("%f",&distance);
    distanceFloor=(int)distance;
    if(distanceFloor==0){
        printf("");
    }else if(distance<=3.0&&distance>0.0){
        printf("路程=%.1f公里,价钱=8.0元",distance);
    }
    else{
        distanceCeil=(int)(distance+0.5);
        distanceFloor=(int)(distance);
        price=8.0+1.8*(distanceCeil-3)+0.9*(distanceCeil==distanceFloor?1:0);
        printf("路程=%.1f公里,价钱=%.1f元",distance,price);
    }
}